package com.migo.constant;
/**
 * 美摄的 请求返回的对象
 */
public enum ResultCode {
    SUCCESS(1,"成功","success"),
    FAILED(-1,"失败","failed"),
    PARAM_NOT_COMPLETE(1004,"缺少参数","param not complete"),
    REQUEST_METHOD_NOT_SUPPORTED(1018,"不支持当前的请求方式","request method not supported"),
    OBJECT_NOT_EXISTS(3002,"对象不存在", "object not exists")
    ;

    private Integer code;
    private String zh_message;
    private String en_message;

    ResultCode(Integer code, String zh_message, String en_message){
        this.code = code;
        this.zh_message = zh_message;
        this.en_message = en_message;
    }

    public Integer code(){
        return this.code;
    }
    public String enMessage(){
        return this.en_message;
    }
    public String zhMessage(){
        return this.zh_message;
    }


}
